package com.pt.dto.response;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class ForumTopicResponse {
    private Long id;
    private Integer sectionId;
    private String sectionName;
    private String title;
    private String content;
    private Long authorId;
    private String username; // 作者用户名
    private Boolean isTop;  // 对应 isSticky
    private Boolean isSticky; // 是否置顶
    private Boolean isEssence;
    private Boolean isLocked;
    private Integer replyCount;
    private Integer viewCount;
    private Integer likeCount; // 点赞数
    private Boolean isLiked; // 是否已点赞
    private Long lastReplyId;
    private Long lastReplyUserId;
    private String lastReplyUsername; // 最后回复用户名
    private LocalDateTime lastReplyTime;
    private LocalDateTime lastReplyAt; // 前端期望的字段名
    private LocalDateTime createdTime;
    private LocalDateTime createdAt; // 前端期望的字段名
    private Boolean isDeleted;
} 